﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.IO;
using System.Xml;
using ParseTraceResulttoCSV;

namespace ParseResultFile
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Please Enter Path of .trx file.");
            string path = Console.ReadLine(); //Variable to read and store input of user

            if (!string.IsNullOrEmpty(path))
                args = path.Split(',');

            DebugTrace debugTrace = new DebugTrace();

            if (args.Count() == 1)
                debugTrace.Run(args[0].ToString());
            else if (args.Count() == 2)
                debugTrace.Run(args[0].ToString(), args[1].ToString());
            else
                Console.WriteLine("Incorrect Parameters.");

            Console.ReadLine();
        }
    }


}
